package com.mkyong.common;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.ManagedProperty;
import javax.faces.bean.SessionScoped;

import com.mkyong.model.ChestionarTO;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

@ManagedBean
@SessionScoped
public class HelloBean implements Serializable {

	private static final long serialVersionUID = 1L;

	private String name;
	
	private List<ChestionarTO> chestionare;
	
	private ModelBean modelBean = new ModelBean();


	
	public HelloBean(){
		
	}
	public List<ChestionarTO> getChestionare() {
		
		return modelBean.getChestionarList();
	}

	public void setChestionare(List<ChestionarTO> chestionare) {
		this.chestionare = chestionare;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

}